package main

import (
	"github.com/gin-gonic/gin"
	"shop/api"
	"shop/config"
	"shop/inits/mysql"
)

func main() {

	config.InitViper()

	mysql.InitMysql()

	r := gin.Default()

	api.Router(r)

	r.Run(":8088") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
